package com.sv.zgydor.service.impl;

import com.sv.zgydor.dao.Table1DAO;
import com.sv.zgydor.dao.Table2DAO;
import com.sv.zgydor.pojo.pg.Table2Entity;
import com.sv.zgydor.service.Table2Service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Class summary
 * User: kevin
 * Date: 2017/09/23
 * Time: 21:23
 * Description:
 */
@Service
public class Table2ServiceImpl implements Table2Service {

    @Autowired
    private Table2DAO table2DAO;

    @Override
    @Transactional
    public void save(Table2Entity table2Entity) {
        this.table2DAO.save(table2Entity);
    }

    @Override
    public List<Table2Entity> findAll() {
        return null;
    }
}
